<!DOCTYPE html>
<html lang="en">
<head>
    <meta name="keywords" content="yaf,直播,视频,办公,在线">
    <meta name="description" content="北京天满星科技有限公司">
    <meta name="author" content="Powerless,王莹莹">
    <meta charset="UTF-8">
    <title><?=$title?></title>
    <link rel="stylesheet" href="/index/css/amazeui.css">
    <link rel="stylesheet" href="/index/css/reset.css">
    <link rel="stylesheet" href="/index/js/layui-master/src/css/layui.css">
    <link rel="stylesheet" href="/index/css/font-css/iconfont.css">
    <link rel="stylesheet" href="/index/css/main.css">
    <script type="text/javascript" src="/index/js/common.js"></script>
</head>

<script>
    var username = "<?=$user['nickname']?>";
    var useravatar = "<?=$user['avatar']?>";
</script>
<body>
<div class="header noselect">
    <div id="nav-bar" class="clearfix">
        <img id="logo" class="fl" src="/index/img/logo.png" alt="">
        <ul class="layui-nav" lay-filter="">
            <li class="layui-nav-item"><a href="/Home/index">首&nbsp;&nbsp;页</a></li>
            <li class="layui-nav-item ">
                <a href="javascript:void(0);">课程培训</a>
                <dl class="layui-nav-child">
                    <dd><a href="/Course/livelists">正在直播</a></dd>
                    <dd><a href="/Course/priorlists">精彩预告</a></dd>
                    <dd><a href="/Course/backlists">往期培训</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item">
                <a href="javascript:void(0);">即时培训</a>
                <dl class="layui-nav-child">
                    <dd><a href="/Meeting/livelists">正在直播</a></dd>
                    <dd><a href="/Meeting/backlists">往期培训</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item"><a href="/Question/index">优秀学员</a></li>
            <li class="layui-nav-item"><a href="/Society/index">论坛发帖</a></li>
            <li class="layui-nav-item">
                <a href="javascript:void(0)">培训发布</a>
                <dl class="layui-nav-child">
                    <dd><a href="/Prior/my">我的发布</a></dd>
                    <dd><a href="/Prior/issue">往期发布</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item" id="nav-sort">
                <a href="javascript:void(0)">培训分类</a>
                <dl class="layui-nav-child">
                    <?php foreach($group['lists'] as $v):?>
                        <dd><a href="/Course/group?gid=<?=$v['gid']?>"><?=$v['name']?></a></dd>
                    <?php endforeach;?>
                </dl>
            </li>
            <li class="layui-nav-item fr" id="nav-user">
                <a  href="/User/site"><img id="user-avatar" src="<?=$user['avatar']?>" alt="<?=$user['nickname']?>" onerror = "iService.imgNoFind(this)"></a>
                <div class="layui-nav-child user-info-wrap">
                    <div class="top">
                        <img src="<?=$user['avatar']?>" onerror = "iService.imgNoFind(this)">
                        <div class="user-info">
                            <p><b class="user-name"><?=$user['nickname']?></b>&nbsp;<?=$user['section']?></p>
                            <p>成绩：<?=$user['ranking']['count']?>题&nbsp;&nbsp;<?=$user['ranking']['ranking']?></p>
                        </div>
                    </div>
                    <ul class="user-nav-bar clearfix">
                        <li><a href="/User/site"><i class="am-icon-cog"></i>个人设置</a></li>
                        <li><a href="/User/result"><i class="am-icon-calendar"></i>我的成绩</a></li>
                        <li><a href="/Prior/wait"><i class="layui-icon">&#xe658;</i>报名记录</a></li>
                        <li><a href="/Society/posts"><i class="am-icon-file-text-o"></i>我的发帖</a></li>
                    </ul>
                    <div class="bot clearfix">
                        <a class="fl" href="/Login/signOut">安全退出</a>
                        <a class="fr" href="/User/record">充值中心</a>
                    </div>
                </div>
            </li>
            <li class="layui-nav-item fr">
                <a  href="javascript:void(0);">下载app</a>
                <div class="layui-nav-child code-wrap">
                    <img class="code fl" src="/index/img/code-down.png" alt="">
                    <div class="fr">
                        <p class="justify">扫一扫下载App</p>
                        <a href="javascript:void(0);"><span class="am-icon-apple">&nbsp;&nbsp;</span>App Store下载</a>
                        <a href="javascript:void(0);"><span class="am-icon-android">&nbsp;&nbsp;</span>Android下载</a>
                    </div>
                </div>
            </li>
        </ul>
    </div>
</div>
<div class="scroll-wrap">
